package com.base.cn.platform.os.entity.classes.condition;

import com.base.cn.platform.os.common.utils.DataUtil;
import com.base.cn.platform.os.entity.classes.member.ClassesMember;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 班级成员查询条件
 *
 * @author SK
 * @since 2018-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ClassesMemberCondition extends ClassesMember {

    // 搜索用户 手机/邮箱/登录名
    private String search;
    // 排序 1.班主任 ->普通学员
    private Integer order;
    // 班级id
    private String classesIds;
    // 成员的id
    private String memberIds;

    private int[] identities;
    /**查询数量*/
    private int count;

    public void identities(int... identities) {
        this.identities = identities;
    }

    public String getClassesIds() {
        return DataUtil.filterNotNumberStr(classesIds);
    }

    public String getMemberIds() {
        return DataUtil.filterNotNumberStr(memberIds);
    }
}
